<!DOCTYPE html>
<html>
<head>
    <title>测试用例选择</title>
</head>
<link href="../../static/css/controls.css" rel="stylesheet" type="text/css">
<link href="../../static/css/engine.css" rel="stylesheet">
<style type="text/css">
    table.gridtable {
        font-family: verdana,arial,sans-serif;
        font-size:11px;
        color:#333333;
        border-width: 1px;
        border-color: #666666;
        border-collapse: collapse;
    }
    table.gridtable th {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #dedede;
    }
    table.gridtable td {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
    }
    .btn {
        background-color: #dedede;
        border: 1px solid #000;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        width:100px;
    }
</style>
<script>var ctx = '';
var basePath = '/grule-manager';</script>

<script src="/bower_components/requirejs/require.js" data-main="/static/app.js"
        data-bootstrap-modules="'system2/execute/TestResultController'"></script>
<body ng-controller="TestResultController" ng-cloak>

<div>
    测试结果：
    <table width="100%" class="gridtable">
        <div >
            <tbody>
            <tr>
                <th>用例名称</th>
                <th>测试结果</th>
                <th>错误信息</th>
            </tr>
            </tbody>
        </div>
        <div class="grid-body">
            <tr ng-repeat="result in results" >
                <td class="grid-017-col-0 align-left ">{{result.testName}}</td>
                <td class="grid-017-col-0 align-left ">{{result.success | resultFilter}}</td>
                <td class="grid-017-col-0 align-left ">{{result.messages}}</td>
            </tr>
        </div>
    </table>
    <div class="compiler-view" style="padding-top:5px;">
        <button ng-click="showLog()" class="btn" style="font-size: 14px;color: #000000;width:100px;">查看详情<i class="icon-engine-down-b" id="img"></i></button>
        <button href="#" ng-click="showOrbit()" class="btn" style="font-size: 14px;color: #000000;margin-left: 10px;width:150px;">查看规则执行轨迹<i class="icon-engine-upward-b" id="orbit"></i></button>
    </div>
    <div ng-show="logShow">
        <textarea id="logDetail"  style="background-color: white;width:500px;height: 180px;" ng-model="logDetail" rows="15" cols="150" ng-disabled="true">
        </textarea>
    </div>
</div>

</body>
</html>
